package com.hq.bootdemo.mapper;

import com.hq.bootdemo.entity.TypeEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.util.List;

@Mapper
public interface TypeMapper {
    List<TypeEntity> selectAll(String condition);
        int insertOne(@Param("type") TypeEntity type);
        int delOne(@Param("id") Integer id);

    TypeEntity selectOne(@Param("id") Integer id);

    int updata (@Param("type") TypeEntity type);
}
